/*
 * Unit.h
 *
 *  Created on: Mar\9, 2011
 *      Author: topcoder
 */

#ifndef UNIT_H_
#define UNIT_H_

#include "iostream"
#include "string"
using namespace std;

class Unit 
{
public:
    Unit(const unsigned int ratio2BaseUnit, const string name);
    unsigned int toAmountInBaseUnit(const unsigned int amount) const;
    unsigned int toAmountInThisUnit(const unsigned int amount) const;
    friend ostream& operator << (ostream& os, const Unit& unit);

private:
    unsigned int ratio2BaseUnit_m;
    string name_m;

    
};

#endif /* UNIT_H_ */
